;
;	FlashCalc Pop-up Menu Configuration
;
Comment 	("Configured for FlashCalc")

;
;	Parameters
;
Sensitivity	(20, 8) 	; (Xinc, Yinc)
Hysteresis	(4, 3)		; (AutoX, AutoY)
ReverseVideo	(Yes)		; Menu is displayed in reverse video
FixedMenu	(Yes)		; Menu is in a fixed position
MenuCenter	(70,14) 	; (Col, Row) of menu center
EnableBeep	(Yes)		; Beeps if wrong button pressed with menu up
EnableKbdInt	(Yes)		; Enable keyboard interrupt

;
;	Cursor Definitions
;
ArrowKeys: Cursor
(
	Left	([Left])
	Right	([Right])
	Up	([Up])
	Down	([Down])
)

;
;	Button Definitions
;
LBM:	Button	(Menu(Main))		; Left button, Main Menu
LBC:	Button	(Menu(Calc))		; Left button, Calc Menu
LBR:	Button	(Menu(Repl))		; Left button, Replicate Menu
MB:	Button	(Keys([Enter])) 	; Middle button
RB:	Button	(Keys([Esc]))		; Right button

;
;	Menu Definitions
;
Main: Menu
(
	Title	("Main")
	Item	("Calc Menu",           Menu(Calc), Button(LBC))
	Item	("Attribute Menu",      Keys("/A"]),Menu(Attrib))
	Item	("Delete Menu",         Menu(Delete))
	Item	("Insert Menu",         Menu(Insert))
	Item	("Window Menu",         Menu(Window))
	Item	("Title Menu",          Menu(Title))
	Item	("Quit Menu",           Menu(Quit))
	Item	("Format Menu",         Keys("/F"),Menu(Format))
	Item	("Global Menu",         Keys("/G"),Menu(Global))
	Item	("Replicate Menu",      Keys("/R"),Menu(Repl),Button(LBR))
	Item	("Storage",             Keys("/S"))
	Item	("Print",               Keys("/P"))
	Item	("Move",                Keys("/M"))
	Item	("Repeating Label",     Keys("/-"))
	Item	("Edit",                Keys("/E"))
	Item	("Blank",               Keys("/B"[Enter]))
	Item	("Clear",               Keys("/C"))
	Item	("Hardware",            Keys("/H"))
	Item	("Yes",                 Keys("Y"))
	Item	("Home",                Keys([Home]))
	Item	("Backspace",           Keys([Backspace]))
	Item	("Cancel",              Keys([Esc]))
)

Quit: Menu
(
	Title	("Quit")
	Item	("Return",              Keys("C"))
	Item	("Set Options",         Keys("O"))
	Item	("Exit Flashcalc",      Keys("B"))
	Item	("Cancel",              Keys([Esc]))
)

Repl: Menu
(
	Title	("Replicate")
	Item	("No Change",           Keys("N"),Button(LBM))
	Item	("Relative",            Keys("R"),Button(LBM))
	Item	("(",                   Keys("("))
	Item	("Attributes",          Keys("A"))
	Item	("Formats",             Keys("F"))
	Item	("Refs - No change",    Keys("N"))
	Item	("Refs - Relative",     Keys("R"))
	Item	("Displayed Values/Labels",Keys("V"))
	Item	("Contents",            Keys("C"))
	Item	(")",                   Keys(")"),Button(LBM))
	Item	("Cancel",              Keys([Esc]),Button(LBM))
)

Calc: Menu
(
	Title	("Calc")
	Item	("Main Menu",           Menu(Main), Button(LBM))
	Item	("@Sum(",               Keys("@Sum("))
	Item	("Comma",               Keys(","))
	Item	(".",                   Keys("."))
	Item	(")",                   Keys(")"))
	Item	("(",                   Keys("("))
	Item	("+",                   Keys("+"))
	Item	("-",                   Keys("-"))
	Item	("*",                   Keys("*"))
	Item	("/",                   Keys("/"))
	Item	("^",                   Keys("^"))
	Item	("Edit",                Keys("/E"))
	Item	("Recalc",              Keys("!"))
	Item	("Cancel",              Keys([Esc]))
)

Window: Menu
(
	Title	("Window")
	Item	("Change Window",       Keys(";"))
	Item	("Horizontal",          Keys("/WH"))
	Item	("Vertical",            Keys("/WV"))
	Item	("One Window",          Keys("/W1"))
	Item	("Synchronized",        Keys("/WS"))
	Item	("Unsynchronized",      Keys("/WU"))
)


Title: Menu
(
	Title	("Title")
	Item	("Horizontal",          Keys("/TH"))
	Item	("Vertical",            Keys("/TV"))
	Item	("Both",                Keys("/TB"))
	Item	("No Title",            Keys("/TN"))
)

Format: Menu
(
	Title	("Format")
	Item	("General",             Keys("G"))
	Item	("Integer",             Keys("I"))
	Item	("Currency",            Keys("$"))
	Item	("Left",                Keys("L"))
	Item	("Right",               Keys("R"))
	Item	("Graph",               Keys("*"))
	Item	("Default",             Keys("D"))
	Item	("No Decimal Place",    Keys("0"))
	Item	("1 Decimal Place ",    Keys("1"))
	Item	("2 Decimal Places",    Keys("2"))
	Item	("3 Decimal Places",    Keys("3"))
	Item	("4 Decimal Places",    Keys("4"))
	Item	("5 Decimal Places",    Keys("5"))
	Item	("6 Decimal Places",    Keys("6"))
	Item	("Cancel",              Keys([Esc]))
)

Global: Menu
(
	Title	("Global")
	Item	("Attributes",          Menu(Attrib))
	Item	("Column Width",        Keys("C"))
	Item	("Recalc Order Rows",   Keys("OR"))
	Item	("Recalc Order Columns",Keys("OC"))
	Item	("Recalc Auto",         Keys("RA"))
	Item	("Recalc Manual",       Keys("RM"))
	Item	("Format",              Menu(Format))
	Item	("Cancel",              Keys([Esc]))
)

Attrib: Menu
(
	Title	("Attribute")
	Item	("Default",             Keys("D"))
	Item	("All Data",            Keys("A"))
	Item	("Only Labels",         Keys("L"))
	Item	("Only Values",         Keys("V"))
	Item	("Display Comma",       Keys(","))
	Item	("Display & Protect",   Keys(";"))
	Item	("Expression",          Keys("E"))
	Item	("Protect Cell",        Keys("P"))
	Item	("Hide",                Keys("H"))
	Item	("Cancel",              Keys([Esc]))
)

Insert: Menu
(
	Title	("Insert")
	Item	("Row",                 Keys("/IR"))
	Item	("Column",              Keys("/IC"))
)

Delete: Menu
(
	Title	("Delete")
	Item	("Row",                 Keys("/DR"))
	Item	("Column",              Keys("/DC"))
)


;
;	Mouse Definition
;
Mouse
(
	Left	(LBM)
	Middle	(MB)
	LeftRight(MB)
	Right	(RB)
	Cursor	(ArrowKeys)
)
